﻿<Application 
    x:Class="Social_Celebrities.App"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"       
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
     xmlns:my="clr-namespace:System;assembly=mscorlib"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
     xmlns:AdRotator="clr-namespace:AdRotator;assembly=AdRotator"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone">

    <!--Application Resources-->
    <Application.Resources>
        <Style x:Key="DetailPagePivotTitleImage" TargetType="Image">
            <Setter Property="Source" Value="/Images/Pivot/Title.png"></Setter>
            <Setter Property="Width" Value="36"></Setter>
            <Setter Property="Height" Value="36"></Setter>
            <Setter Property="Stretch" Value="Uniform"></Setter>
            <Setter Property="HorizontalAlignment" Value="Left"></Setter>
        </Style>
        <Style x:Key="DetailPagePivotTitleImage1" TargetType="Image">
            <Setter Property="Source" Value="/Images/Panorama/Logo.png"></Setter>
            <Setter Property="Width" Value="70"></Setter>
            <Setter Property="Margin" Value="0,-15,0,0"></Setter>
            <Setter Property="Height" Value="70"></Setter>
            <Setter Property="Stretch" Value="Uniform"></Setter>
            <Setter Property="HorizontalAlignment" Value="Left"></Setter>
        </Style>
        <Style x:Key="DetailPagePivotTitleImage2" TargetType="Image">
            <Setter Property="Source" Value="/Images/Panorama/Title.png"></Setter>
            <Setter Property="Width" Value="350"></Setter>
            <Setter Property="Margin" Value="0,-30,0,0"></Setter>
            <Setter Property="Height" Value="75"></Setter>
            <Setter Property="Stretch" Value="Uniform"></Setter>
            <Setter Property="HorizontalAlignment" Value="Left"></Setter>
        </Style>
        <Style x:Key="DetailPagePivotTitle" TargetType="TextBlock">
            <Setter Property="Foreground" Value="White"/>
            <Setter Property="FontSize" Value="25"/>
            <Setter Property="FontFamily" Value="Calibri"/>
            <Setter Property="FontWeight" Value="Normal"/>
            <Setter Property="VerticalAlignment" Value="Center"/>
            <Setter Property="Width" Value="400"></Setter>
            <Setter Property="Margin" Value="15,0,5,0"/>
        </Style>
        <Style x:Key="MainPanoramaTitlestyle" TargetType="TextBlock">
            <Setter Property="Foreground" Value="White"/>
            <Setter Property="FontSize" Value="56"/>
            <Setter Property="FontFamily" Value="/Fonts/Roskell.ttf#Roskell"/>
            <Setter Property="FontWeight" Value="Normal"/>
        </Style>
        <Style x:Key="AboutUsMenuRowStyle" TargetType="StackPanel">
            <Setter Property="Orientation" Value="Horizontal"/>
            <Setter Property="Margin" Value="0,12,0,12"/>
        </Style>

        <Style x:Key="AboutUsMenuItemText" TargetType="TextBlock">
            <Setter Property="Foreground" Value="White"/>
            <Setter Property="FontSize" Value="45"/>
            <Setter Property="FontFamily" Value="/Fonts/Milleni Gem.ttf#MilleniGem"/>
            <Setter Property="Margin" Value="0,10,0,0"/>
            <Setter Property="Height" Value="70"/>
        </Style>
        <Style x:Key="RelatedAppCountContainer" TargetType="Ellipse">
            <Setter Property="Canvas.Left" Value="3" />
            <Setter Property="Canvas.Top" Value="5" />
            <Setter Property="Width" Value="60" />
            <Setter Property="Height" Value="60" />
            <Setter Property="VerticalAlignment" Value="Center" />
            <Setter Property="HorizontalAlignment" Value="Center" />
            <Setter Property="Fill" Value="#f26522" />
            <Setter Property="Stroke" Value="White" />
            <Setter Property="StrokeThickness" Value="3" />
            <Setter Property="IsHitTestVisible" Value="False" />
        </Style>
        <Style x:Key="RelatedAppCountStyle" TargetType="TextBlock">
            <Setter Property="Foreground" Value="White"/>
            <Setter Property="FontSize" Value="32"/>
            <Setter Property="VerticalAlignment" Value="Center"/>
            <Setter Property="HorizontalAlignment" Value="Center"/>
            <Setter Property="Width" Value="30"/>
            <Setter Property="Height" Value="44"/>
            <Setter Property="IsHitTestVisible" Value="False"/>
            <Setter Property="Margin" Value="16,-10,0,0"/>
        </Style>
        <Style x:Key="AboutTitleStyle" TargetType="TextBlock">
            <Setter Property="Foreground" Value="White"/>
            <Setter Property="FontSize" Value="56"/>
            <Setter Property="FontFamily" Value="/Fonts/Roskell.ttf#Roskell"/>
        </Style>
        <Style x:Key="FormElementLabel" TargetType="TextBlock">
            <Setter Property="Foreground" Value="White"/>
            <Setter Property="FontSize" Value="30"/>
            <Setter Property="FontFamily" Value="Calibri"/>
        </Style>          
        
        <Style x:Key="logo" TargetType="Image">
            <Setter Property="Source" Value="Images/Panorama/Logo.png"></Setter>
        </Style>
        <my:String x:Key="AdVisible">True</my:String>
        <Style x:Key="Title" TargetType="Image">
            <Setter Property="Source" Value="Images/Panorama/Title.png"></Setter>
        </Style>
        <my:String x:Key="OnlineImagesPageName">OnlineImages</my:String>
        <ImageBrush x:Name="bi" ImageSource="/Images/Panorama/Background.jpg"></ImageBrush>
        <ImageBrush x:Name="bipivot" ImageSource="/Images/Pivot/Background.jpg" ></ImageBrush>
        <Style TargetType="phone:PhoneApplicationFrame" x:Key="RootFrameStyle">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="phone:PhoneApplicationFrame">
                        <Border 
                            x:Name="ClientArea" 
                            HorizontalAlignment="{TemplateBinding HorizontalAlignment}" 
                            VerticalAlignment="{TemplateBinding VerticalAlignment}" 
                            Background="{TemplateBinding Background}" 
                            BorderBrush="{TemplateBinding BorderBrush}" 
                            BorderThickness="{TemplateBinding BorderThickness}"
                            >
                            <Grid>
                                <Popup 
                                    x:Name="pop" 
                                    Height="60" 
                                    Width="480" 
                                    VerticalAlignment="Top" 
                                    Opened="pop_Opened_1" 
                                    IsOpen="False" 
                                    HorizontalAlignment="Center">
                                    <Grid 
                                        Background="{StaticResource PhoneAccentBrush}" 
                                        Height="60" 
                                        Width="480" 
                                        VerticalAlignment="Top" 
                                        HorizontalAlignment="Center">
                                        <TextBlock 
                                            Text="Successfully Shared To Blog" 
                                            FontSize="20" 
                                            Margin="15,25,0,0"
                                            x:Name="Blog_Msg"/>
                                    </Grid>
                                </Popup>

                                <Popup x:Name="popforapprating" Height="140" Width="480"  VerticalAlignment="Top" Opened="popforapprating_Opened_1" IsOpen="False" HorizontalAlignment="Center">
                                    <Grid Background="{StaticResource PhoneAccentBrush}" Height="140" Width="480"  VerticalAlignment="Top" HorizontalAlignment="Center">
                                        <StackPanel Orientation="Vertical" HorizontalAlignment="Center">
                                            <TextBlock Text="Please Give 5 Star Rating" FontSize="20" Margin="15,25,0,0" ></TextBlock>
                                            <StackPanel Orientation="Horizontal">
                                                <Button x:Name="okbtn" Content="Ok" Click="okbtn_Click_1"></Button>
                                                <Button x:Name="cancelbtn" Content="Cancel" Click="cancelbtn_Click_1"></Button>
                                            </StackPanel>
                                        </StackPanel>
                                    </Grid>
                                </Popup>
                                <ContentPresenter 
                                    HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" 
                                    VerticalAlignment="{TemplateBinding VerticalContentAlignment}" 
                                    Margin="{TemplateBinding Padding}" />
                                <Grid 
                                    Height="80" 
                                    Width="480" 
                                    VerticalAlignment="Bottom" 
                                    HorizontalAlignment="Center" >
                                    <!--<AdRotator:AdRotatorControl 
                                        x:Name="AdRotatorWin8" 
                                        Margin="1"                                        
                                        VerticalAlignment="Bottom" 
                                        HorizontalAlignment="Center" 
                                        SlidingAdDirection="Left" 
                                        SlidingAdDisplaySeconds="20" 
                                        SlidingAdHiddenSeconds="2"
                                        DefaultSettingsFileUri=""
                                        SettingsUrl="http://lartsoft.org/wp7ads/IndianCinemadefaultAdSettings.xml"
                                        />-->
                                </Grid>
                            </Grid>
                        </Border>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        
        <my:String x:Key="misuid">192971</my:String>
        <my:String x:Key="misappid">6fe0964f-ee96-4dea-bc16-6b56ff6aef98</my:String>
        <my:String x:Key="productid">c6075ab9-e3aa-4ce7-9625-ea08982b8feb</my:String>
        <my:String x:Key="SettingsUrl">http://lartsoft.org/wp7ads/IndianCinemadefaultAdSettings.xml</my:String>
        <my:String x:Key="AdRotator">False</my:String>

    </Application.Resources>

    <Application.ApplicationLifetimeObjects>
        <!--Required object that handles lifetime events for the application-->
        <shell:PhoneApplicationService
            Launching="Application_Launching" Closing="Application_Closing"
            Activated="Application_Activated" Deactivated="Application_Deactivated"/>
    </Application.ApplicationLifetimeObjects>

</Application>